#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Chromos;
using Chromos.ActionEngine;
using Chromos.Actors;
#endregion

namespace Chromos.AIEngine
{
	public class MinionAIEngine : ActorAIEngine
	{
		public MinionAIEngine(Actor actor, string aggressiveSetting, int radius)
            : base(actor, aggressiveSetting, radius)
		{
			// Randomly select initial movement direction
			// 0 = left, 1 = right
			Random ran = new Random();
			int direction = ran.Next(2);
			if (direction == 1)
			{
				setMovingRight();
				actor.getActionEngine().playAction(ActionType.Movement, 1);
			}
			else if (direction == 0)
			{
				setMovingLeft();
				actor.getActionEngine().playAction(ActionType.Movement, 0);
			}
		}
	}
}